// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once

#include "targetver.h"

#include <stdio.h>
#include <tchar.h>

// Common headers
#include <HpsFramework/HpsFramework.hpp>
#include <HpsFramework/Socket.hpp>

// Common namespaces
using namespace HpsFramework;
using namespace HpsFramework::Exceptions;
using namespace HpsFramework::Network;

#define Pause()		cout << std::endl; system("PAUSE>NULL")

#include <windows.h>

//
// You'll get an error here, so please visit this link before compiling:
// http://vld.codeplex.com/
//

//#define DETECT_LEAKS

#if defined(_DEBUG) && defined(DETECT_LEAKS)
#include <vld.h>
#define StartLeakDetection() \
	VLDEnable(); \
	VLDSetReportOptions ( VLD_OPT_REPORT_TO_DEBUGGER | VLD_OPT_REPORT_TO_FILE, L".\\HpsServer-Leaks.txt" );
#else
#define StartLeakDetection()
#endif